<?php

namespace Admin\Entity;

class Profile {

    public $password;
    public $fullName;
    public $lastName;
    public $sex;
    public $birthday;
    public $email;
    public $phoneNumber;
    public $residentAddress;
    public $nativePlace;
    public $profilePhoto;
    public $description;

    public function getDescription() {
        return $this->description;
    }

    public function setDescription($description) {
        $this->description = $description;
    }

    public function getLastName() {
        return $this->lastName;
    }

    public function setLastName($lastName) {
        $this->lastName = $lastName;
    }

    public function getPassword() {
        return $this->password;
    }

    public function setPassword($password) {
        $this->password = $password;
    }

    public function getFullName() {
        return $this->fullName;
    }

    public function setFullName($fullName) {
        $this->fullName = $fullName;
    }

    public function getSex() {
        return $this->sex;
    }

    public function setSex($sex) {
        $this->sex = $sex;
    }

    public function getBirthday() {
        return $this->birthday;
    }

    public function setBirthday($birthday) {
        $this->birthday = $birthday;
    }

    public function getEmail() {
        return $this->email;
    }

    public function setEmail($email) {
        $this->email = $email;
    }

    public function getPhoneNumber() {
        return $this->phoneNumber;
    }

    public function setPhoneNumber($phoneNumber) {
        $this->phoneNumber = $phoneNumber;
    }

    public function getResidentAddress() {
        return $this->residentAddress;
    }

    public function setResidentAddress($residentAddress) {
        $this->residentAddress = $residentAddress;
    }

    public function getNativePlace() {
        return $this->nativePlace;
    }

    public function setNativePlace($nativePlace) {
        $this->nativePlace = $nativePlace;
    }

    public function getProfilePhoto() {
        return $this->profilePhoto;
    }

    public function setProfilePhoto($profilePhoto) {
        $this->profilePhoto = $profilePhoto;
    }

    public function setDataProfile($data) {
        $this->password = (isset($data['password'])) ? $data['password'] : null;
        $this->fullName = (isset($data['fullName'])) ? $data['fullName'] : null;
        $this->lastName = (isset($data['lastName'])) ? $data['lastName'] : null;
        $this->sex = (isset($data['sex'])) ? $data['sex'] : null;
        $this->birthday = (isset($data['birthday'])) ? $data['birthday'] : null;
        $this->email = (isset($data['email'])) ? $data['email'] : null;
        $this->phoneNumber = (isset($data['phoneNumber'])) ? $data['phoneNumber'] : null;
        $this->residentAddress = (isset($data['residentAddress'])) ? $data['residentAddress'] : null;
        $this->nativePlace = (isset($data['nativePlace'])) ? $data['nativePlace'] : null;
        $this->profilePhoto = (isset($data['profilePhoto'])) ? $data['profilePhoto'] : null;
        $this->description = (isset($data['description'])) ? $data['description'] : null;
    }

    public function getArrayCopy() {
        return get_object_vars($this);
    }

}

?>
